/*******************************************************************************
 * Copyright (c) 2011 Olexandr V. Shaposhnikov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Olexandr V. Shaposhnikov - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.funkyroach.use.ui.wizard;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;

import com.funkyroach.use.udk.USUDKRuntime;

public class USUDKOptionsGroup extends Group {

    /**
     * Create the composite.
     * 
     * @param parent
     * @param style
     */
    public USUDKOptionsGroup(Composite parent, int style) {
        super(parent, style);

        Group group = new Group(this, SWT.NONE);
        group.setBounds(10, 10, 132, 58);

        Button btnX = new Button(group, SWT.RADIO);
        btnX.setBounds(10, 20, 90, 16);
        btnX.setText("x32");

        Button btnX_1 = new Button(group, SWT.RADIO);
        btnX_1.setBounds(10, 42, 60, 16);
        btnX_1.setText("x64");

        if (true) {//!USUDKRuntime.isOSx64_Arch()) {
            group.setText("Not implemented yet.");
            btnX.setEnabled(false);
            btnX.setSelection(true);
            btnX_1.setEnabled(false);
        }

    }

    @Override
    protected void checkSubclass() {
        // Disable the check that prevents subclassing of SWT components
    }
}
